<%-- 
    Document   : checkout
    Created on : 2012-maj-13, 15:52:32
    Author     : Inna Ermilova
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="beans.*, tags.*"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/stl/core"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/stl/xml"%>
<%@taglib prefix="c" uri="/computershop"%>

<c:if test="${sessionScope.currentUser == null}">
<computershop:profile url="${jdbcURL}"/>
</c:if>
<c:set var="shoppingcart_xslt">
    <c:import url="shoppingcart_checkout_xslt.xsl"/>
</c:set>
<x:transform xslt="${shoppingcart_xslt}">
    <checkout>
        <computershop:shoppingcart/>
        <name>${profile.name}</name>
        <address>${profile.street}</address>
        <zip>${profile.zip}</zip>
        <city>${profile.city}</city>
    </checkout>
</x:transform>
